/**
 * 
 */
package com.jfootball.domain;

import java.io.Serializable;

import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.Id;
import javax.persistence.Table;

import org.apache.commons.lang.builder.EqualsBuilder;
import org.apache.commons.lang.builder.ToStringBuilder;
import org.apache.commons.lang.builder.ToStringStyle;
import org.directwebremoting.annotations.DataTransferObject;

/**
 * @author Alessandro Danesi
 *
 * 09/giu/201523:26:00
 */
@Entity
@Table(name="STAFF_ROLES")
@DataTransferObject(type = "hibernate3")
public class StaffRole implements Serializable
{
	
	/*************************************************
	  
	  FIELDS
	  
	 **************************************************/
	
	// serial version UID
	private static final long serialVersionUID = 7526472295622776147L;
	
	@Id
	private Long id;

	@Column(name="COD_RUOLO")
	private String codice;
	
	@Column(name="DESC_RUOLO")
	private String descrizione;
	
	@Column(name="COD_CSS")
	private String codCss;
	
	/*************************************************
	  
	  METHODS
	  
	 **************************************************/	
	
	
	public Long getId() 
	{
		return id;
	}
	public void setId(Long id) 
	{
		this.id = id;
	}
	
	
	public String getCodCss() 
	{
		return codCss;
	}
	public void setCodCss(String codCss) 
	{
		this.codCss = codCss;
	}
	
	public String getCodice() {
		return codice;
	}
	public void setCodice(String codice) {
		this.codice = codice;
	}
	
	
	public String getDescrizione() {
		return descrizione;
	}
	public void setDescrizione(String descrizione) {
		this.descrizione = descrizione;
	}

	
	@Override
	public String toString()
	{
		return ToStringBuilder.reflectionToString(this, ToStringStyle.MULTI_LINE_STYLE);
	}
	
	@Override
	public boolean equals(Object obj)
	{
		return EqualsBuilder.reflectionEquals(this, obj);
	}
	
	/*@Override
	public int hashCode()
	{
		return HashCodeBuilder.reflectionHashCode(this);
	}*/		
}
